﻿<form>
    <table>
        <tr>
            <td>
                <label>#</label>
            </td>
            <td>
                <input type="text" readonly value="@JDM.Int32(Model.EntityID)" />
            </td>
        </tr>
        <tr>
            <td>
                <label>&#10001;</label>
            </td>
            <td>
                <input type="text" readonly value="@Svc.DateTime((DateTime)JDM.DateTime(Model.CreatedOn))" />
            </td>
        </tr>
        <tr>
            <td>
                <label>&#10002;</label>
            </td>
            <td>
                <input type="text" readonly value="@Svc.DateTime((DateTime)JDM.DateTime(Model.UpdatedOn))" />
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.Name("Type"))</label>
            </td>
            <td>
                <ul class="bar">
                    <li>
                        <input type="radio" disabled @(JDM.HasFlags(Model.Flags, "Information") ? "checked" : String.Empty) />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LogRecordFlags").Name("Information"))</label>
                    </li>
                    <li>
                        <input type="radio" disabled @(JDM.HasFlags(Model.Flags, "Warning") ? "checked" : String.Empty) />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LogRecordFlags").Name("Warning"))</label>
                    </li>
                    <li>
                        <input type="radio" disabled @(JDM.HasFlags(Model.Flags, "Error") ? "checked" : String.Empty) />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LogRecordFlags").Name("Error"))</label>
                    </li>
                </ul>
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.Name("Severity"))</label>
            </td>
            <td>
                <ul class="bar">
                    <li>
                        <input type="radio" disabled @(JDM.HasFlags(Model.Flags, "Low") ? "checked" : String.Empty) />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LogRecordFlags").Name("Low"))</label>
                    </li>
                    <li>
                        <input type="radio" disabled @(JDM.HasFlags(Model.Flags, "Medium") ? "checked" : String.Empty) />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LogRecordFlags").Name("Medium"))</label>
                    </li>
                    <li>
                        <input type="radio" disabled @(JDM.HasFlags(Model.Flags, "High") ? "checked" : String.Empty) />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LogRecordFlags").Name("High"))</label>
                    </li>
                    <li>
                        <input type="radio" disabled @(JDM.HasFlags(Model.Flags, "Critical") ? "checked" : String.Empty) />
                    </li>
                    <li>
                        <label>@T(Res.In("API").Of("Enum").Of("LogRecordFlags").Name("Critical"))</label>
                    </li>
                </ul>
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.Name("Source"))</label>
            </td>
            <td>
                <input class="required" type="text" name="source" value="@JDM.String(Model.Source)" />
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.Name("Description"))</label>
            </td>
            <td>
                <textarea class="required" name="description">@HtmlUtility.Encode(JDM.String(Model.Description))</textarea>
            </td>
        </tr>
        <tr>
            <td>
                <label>@T(Res.Name("Text"))</label>
            </td>
            <td>
                <textarea name="text">@HtmlUtility.Encode(JDM.String(Model.Text))</textarea>
            </td>
        </tr>
    </table>
</form>

